package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.ArrayList;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.ykdl.member.kid.models.FileMetas;

import net.wxxr.http.interfaces.IJsonParser;

public class DoctorAnswerBean implements Serializable ,IJsonParser{
//	"display_order": 0,
//    "file_ids": null,
//    "has_image": false,
//    "is_anonymous": 0,
//    "is_like": false,
//    "layer": 0,
//    "likes_count": 0,
//    "message": "新建帖子之中文信息转化",
//    "parent_id": 120,
//    "post_actor_display_name": "何辉辉",
//    "post_actor_id": 43,
//    "post_id": 126,
//    "source": "clinic",
//    "source_id": 0,
//    "topic_id": 120
	private boolean has_image ;
	private  String message;
	private int parent_id ;
	private  String post_actor_display_name;
	private int post_actor_id ;
	private int post_id ;
	private int topic_id ;
	private int source_id ;
	private int display_order ;
	private UserActorBean post_actor ;
	private ArrayList<FileMetas> file_metas ;
	private boolean is_answer ;
	private  String post_time;
	
	public ArrayList<FileMetas> getFile_metas() {
		return file_metas;
	}
	
	public void setFile_metas(ArrayList<FileMetas> file_metas) {
		this.file_metas = file_metas;
	}
	public String getPost_time() {
		return post_time;
	}

	public void setPost_time(String post_time) {
		this.post_time = post_time;
	}

	public boolean isIs_answer() {
		return is_answer;
	}

	public void setIs_answer(boolean is_answer) {
		this.is_answer = is_answer;
	}

	public UserActorBean getPost_actor() {
		return post_actor;
	}

	public void setPost_actor(UserActorBean post_actor) {
		this.post_actor = post_actor;
	}


	public boolean isHas_image() {
		return has_image;
	}

	public void setHas_image(boolean has_image) {
		this.has_image = has_image;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getParent_id() {
		return parent_id;
	}

	public void setParent_id(int parent_id) {
		this.parent_id = parent_id;
	}

	public String getPost_actor_display_name() {
		return post_actor_display_name;
	}

	public void setPost_actor_display_name(String post_actor_display_name) {
		this.post_actor_display_name = post_actor_display_name;
	}

	public int getPost_actor_id() {
		return post_actor_id;
	}

	public void setPost_actor_id(int post_actor_id) {
		this.post_actor_id = post_actor_id;
	}

	public int getPost_id() {
		return post_id;
	}

	public void setPost_id(int post_id) {
		this.post_id = post_id;
	}

	public int getTopic_id() {
		return topic_id;
	}

	public void setTopic_id(int topic_id) {
		this.topic_id = topic_id;
	}

	public int getSource_id() {
		return source_id;
	}

	public void setSource_id(int source_id) {
		this.source_id = source_id;
	}

	public int getDisplay_order() {
		return display_order;
	}

	public void setDisplay_order(int display_order) {
		this.display_order = display_order;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = -1868385338168700365L;

	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, DoctorAnswerBean.class);
		}
		return null;
	}

}
